<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>登陆</title>
    <link rel='stylesheet' type='text/css' href="../login/css/style.css"/>
	<script type="text/javascript" src="../../templates/js/jquery/jquery-3.3.1.js"></script>
	<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
</script>
  </head>
  <body>
	<h1>教师题库管理系统</h1>
		<div class="app-location">
			<h2>Welcome to Teacher Question Bank</h2>
			<div class="line"><span></span></div>
			<div class="location"><img src="../../templates/images/1.png" class="img-responsive" alt="" /></div>
			<!-- login start -->
			<form  class="xslogin-form" method="post">
				<input type="text" class="text" value="账号" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '账号';}" >
				<input type="password" value="Password" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = 'Password';}">
				<div class="submit"><input type="submit" onClick="myFunction()" value="登录" ></div>
				<div class="clear"></div>
				<div class="new">
					<h3><a href="#">忘记密码 ?</a></h3>
					<h4><a href="#" class="registernow">现在注册</a></h4>
					<div class="clear"></div>
				</div>
			</form>
			<!-- login end -->
			<!-- register start -->
			 <form method="post" enctype="multipart/form-data" name="userinfoform" id="userinfoform" >
				 <input type="hidden" name="enews" value="register" />
				 <input name="groupid" type="hidden" id="groupid" value="1" />
				 <div id="register">
				 <ul class="Reg-input">
				  <li><input name="UserName" id="UserName" type="text" class="input-text" required="" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '账号';}" value="账号" /> <span class="UserName"></span></li>
				 </ul>
				 <ul class="Reg-input">
				  <li>  <input type="password" name="Password" placeholder="密码··" ><span class="密码">
				  </span></li>
				 </ul>
				 <ul class="Reg-input">
				  <li><input type="password" name="Passwordcopy" placeholder="重复密码··" > <span class="repassword"></span></li>
				 </ul>
				 <ul class="Reg-input">
				  <li><input name="RealName" type="text" id="RealName" class="input-text" required="" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '真实姓名';}" value="真实姓名"/> <span class="RealName"></span></li>
				 </ul>
				 <ul class="Reg-input">
				  <li><input name="Telephone" type="text" id="Telephone" class="input-text" required="" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '手机号码';}" value="手机号码"/> <span class="Telephone"></span></li>
				 </ul>
				 <div style="clear:both"></div>
				 <div class="submit"><input type="submit" onClick="myFunction()" value="注册" ></div>
				 <div class="new">
					<h4><a href="#" class="denglu">已注册～登录</a></h4>
				</div>
			 </div>
		 	</form>
			    <!-- register end -->
		</div>
		<script>
			$(document).ready(function(){
				$("#userinfoform").hide();

				$(".registernow").click(function(){
					$("#userinfoform").show();
					$(".xslogin-form").hide();
				});
				$(".denglu").click(function(){
					$(".xslogin-form").show();
					$("#userinfoform").hide();
				})

			});

		</script>
  </body>
</html>
